//index.js
const app = getApp()

Page({
  data: {
    showMask: false,
    loadingShow: true,
    navList: [{
      name: '海报图',
      package: 'wxa-plugin-canvas',
      path: 'poster/poster'
    },
    {
      name: '瀑布流加载',
      package: 'user',
      path: 'fallsLayout/fallsLayout'
    },
    {
      name: '富文本',
      package: 'wxParse',
      path: 'wxParse/wxParse'
    }
    ]
  },
  onLoad() {

  },
  onReady() {
    setTimeout(() => {
      this.setData({
        loadingShow: false
      })
    }, 500)
  },
  onShow() { },
  // 显示弹窗
  clickShowMask() {
    this.setData({
      showMask: true
    })
  },
  navLink(e) {
    let path = e.currentTarget.dataset.path
    wx.navigateTo({
      url: '/page/home/' + path,
    })
  }
})